package top.glike.funct.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import top.glike.common.annotation.Excel;
import top.glike.common.core.domain.BaseEntity;

/**
 * 访客管理对象 gb_visitor
 * 
 * @author Sophia
 * @date 2024-02-13
 */
public class GbVisitor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 访问次数 */
    @Excel(name = "访问次数")
    private Long count;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 浏览器 */
    @Excel(name = "浏览器")
    private String browser;

    /** 操作系统 */
    @Excel(name = "操作系统")
    private String os;

    /** 项目类型 */
    @Excel(name = "项目类型")
    private Long type;

    /** IP */
    @Excel(name = "IP")
    private String ipaddr;

    /** 地址 */
    @Excel(name = "地址")
    private String loginLocation;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCount(Long count) 
    {
        this.count = count;
    }

    public Long getCount() 
    {
        return count;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setBrowser(String browser) 
    {
        this.browser = browser;
    }

    public String getBrowser() 
    {
        return browser;
    }
    public void setOs(String os) 
    {
        this.os = os;
    }

    public String getOs() 
    {
        return os;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setIpaddr(String ipaddr) 
    {
        this.ipaddr = ipaddr;
    }

    public String getIpaddr() 
    {
        return ipaddr;
    }
    public void setLoginLocation(String loginLocation) 
    {
        this.loginLocation = loginLocation;
    }

    public String getLoginLocation() 
    {
        return loginLocation;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("count", getCount())
            .append("username", getUsername())
            .append("browser", getBrowser())
            .append("os", getOs())
            .append("type", getType())
            .append("ipaddr", getIpaddr())
            .append("loginLocation", getLoginLocation())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
